package com.yxplearn.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@TableName(value = "user_record", autoResultMap = true)
public class UserRecord {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "player_name")
    private String playerName;

    @TableField(value = "map_value", typeHandler = FastjsonTypeHandler.class)
    private Map<Integer, Integer> mapValue;

    @TableField(value = "list_value", typeHandler = FastjsonTypeHandler.class)
    private List<Integer> listValue;

    @TableField(value = "is_exist")
    @TableLogic
    private Integer isExist;

    @TableField("create_time")
    private Date createTime;

    @TableField("modify_time")
    private Date modifyTime;

}
